<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-feedback-edit" th:object="${feedback}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">反馈内容：</label>
                <div class="col-sm-8">
                    <input id="content" name="content" th:field="*{content}" class="form-control" type="text" readonly="readonly">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">反馈时间：</label>
                <div class="col-sm-8">
                    <input id="createDate" name="createDate" th:field="*{createDate}" class="form-control" type="date" readonly="readonly">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">用户ID号：</label>
                <div class="col-sm-8">
                    <input id="memberId" name="memberId" th:field="*{memberId}" class="form-control" type="text" readonly="readonly">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">回复内容：</label>
                <div class="col-sm-8">
                    <input id="replyContent" name="replyContent" th:field="*{replyContent}" class="form-control" type="text" text-overflow="ellipsis">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">回复时间：</label>
                <div class="col-sm-8">
                    <input id="replyTime" name="replyTime" th:field="*{replyTime}" class="form-control" type="date" readonly="readonly">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">回复人：</label>
                <div class="col-sm-8">
                    <input id="replyUser" name="replyUser" th:field="*{replyUser}" class="form-control" type="text" readonly="readonly">
                </div>
            </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">状态：</label>
                   <!-- <div class="col-sm-8">
                        <input id="status" name="status" th:field="*{status}" class="form-control" type="text">
                    </div>-->
                    <div class="col-sm-8">
                        <select id="status" name="status" class="form-control m-b" th:with="type=${@dict.getType('feedback_status')}">
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                        </select>
                    </div>
                </div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "sj/feedback"
		$("#form-feedback-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-feedback-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
